<?php

namespace Ensao\AppBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class ProcedType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('description','textarea')
            ->add('dateCreation','date', array('widget' => 'single_text',
                                                'input'=>'datetime',
                                                'format' => 'yyyy-MM-dd',
                                               )
                    )
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Ensao\AppBundle\Entity\Proced',

        ));
    }
    public function getName()
    {
        return 'ensao_appbundle_procedtype';
    }
}
